package com.hqyj.pojo;

import org.springframework.stereotype.Component;

/**
 * User: Administrator
 * Date: 2022/8/18
 * Time: 16:51
 */
@Component
public class Doctor {
    private int did;
    private User user;
    private String dname;
    private String dsex;
    private Department department;

    public Doctor() {
    }

    public Doctor(int did, User user, String dname, String dsex, Department department) {
        this.did = did;
        this.user = user;
        this.dname = dname;
        this.dsex = dsex;
        this.department = department;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDsex() {
        return dsex;
    }

    public void setDsex(String dsex) {
        this.dsex = dsex;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "Doctor{" +
                "did=" + did +
                ", user=" + user +
                ", dname='" + dname + '\'' +
                ", dsex='" + dsex + '\'' +
                ", department=" + department +
                '}';
    }
}
